package com.jk.controller;

import com.jk.service.CouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 优惠券
 */
@RestController
@RequestMapping("yhq")
public class CouponController {

    @Autowired
    private CouponService couponService;

    /**
     * 查询优惠券信息
     * @return
     */
    @GetMapping("queryCoupon")
    public List queryCoupon(){
        List list = couponService.queryCoupon();
        return list;
    }
}
